package com.wcs.exam.controller.admin.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * Admin-考试-分页请求参数
 * </p>
 *
 * @author wcs
 * @since 2025-03-13
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-考试-分页请求参数")
public class AdminExamPageReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "考试类型(1：模拟考试、2：正式考试")
    private Integer examType;

    @Schema(description = "考试名称")
    private String examName;

    @Schema(description = "分类ID")
    private Long categoryId;

    @Schema(description = "是否只查询当前分类(false:否、true：是)")
    private Boolean onlyCurrentCategory;

    @Schema(description = "试卷ID")
    private Long paperId;

    @Schema(description = "考试说明")
    private String description;

    @Schema(description = "发布状态(0：未发布，1：已发布)")
    private Integer publishStatus;

    @Schema(description = "状态")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始创建时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginGmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束创建时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endGmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始报名开始时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginRegistrationStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束报名开始时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endRegistrationStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始报名结束时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginRegistrationEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束报名结束时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endRegistrationEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始考试开始时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginExamStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束考试开始时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endExamStartTime;

    @Schema(description = "允许迟到(false：禁止、true：允许)")
    private Boolean allowableLate;

    /*------------------------------------------- 查询关联试卷属性 -------------------------------------------*/

    @Schema(description = "随机组题设置(false:关闭、true:开启)")
    private Boolean randomCombine;

    @Schema(description = "乱序设置(false:关闭、true:开启)")
    private Boolean derangement;

    @Schema(description = "题目乱序(false:关闭、true:开启)")
    private Boolean questionDerangement;

    @Schema(description = "选项乱序(false:关闭、true:开启)")
    private Boolean optionDerangement;

    @Schema(description = "当前页")
    private Long pageCurrent = 1L;

    @Schema(description = "每页条数")
    private Long pageSize = 20L;

}
